package dynamicProxy;

public class Client {
    public static void main(String[] args) {
        //真实对象
        Host host=new Host();

        //代理对象
        DPInvocationHandler dpvh = new DPInvocationHandler();
        dpvh.setRent(host);
        Rent proxy= (Rent) dpvh.getProxy();
        proxy.rent();
    }
}
